﻿using System;
using System.Linq;
using System.Windows.Controls;
using Microsoft.Phone.Controls;
////
using GalaSoft.MvvmLight.Messaging;
using ScheduleMVVM.Model.RuntimeFramework;
using ScheduleMVVM.ViewModel;
using ScheduleMVVM.Localization;
namespace ScheduleMVVM
{
    /// <summary>
    /// Description for SearchPage.
    /// </summary>
    public partial class SearchPage : PhoneApplicationPage
    {
        /// <summary>
        /// Initializes a new instance of the SearchPage class.
        /// </summary>
        public SearchPage()
        {
            InitializeComponent();
        }

        private void AutoCompleteBox_DropDownOpened(object sender, System.Windows.RoutedPropertyChangedEventArgs<bool> e)
        {
            AutoCompleteBox _sender = sender as AutoCompleteBox;
            if(_sender != null) _sender.Focus();
        }
    }
}